package com.ywjg.controller.jsonp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ywjg.model.CheckMake;
import com.ywjg.serviceimp.CheckMakeService;
@RestController
@RequestMapping(value = "android/")
public class CheckMakeControllerAndroid {
	
	@Autowired
	CheckMakeService checkMakeService;
	
	@RequestMapping(value = "checkMake")
	private CheckMake checkMake(CheckMake checkMake) {

		return checkMakeService.addCheckMakeInf(checkMake);
	}
	
	@RequestMapping(value = "getCheckMakeInf")
	private CheckMake checkCompany(int userId) {
		return checkMakeService.getOwnCheckMakeInf(userId);
	}

	@RequestMapping(value = "upDateCheckMakeInf")
	private CheckMake upDateCheckDiyInf(CheckMake checkMake) {
		return checkMakeService.upDataMakeInf(checkMake);
	}


}
